package com.qi.services;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qi.pojo.dto.ApplyClubBody;
import com.qi.pojo.entity.AppProcess;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IAppProcessService extends IService<AppProcess> {

    void apply(ApplyClubBody applyClubBody);

    IPage<AppProcess> getList(Long current, Long size);

    IPage<AppProcess> getPendingApprovalList(Long current, Long size);

    @Transactional
    void approval(Long id, Long userId, Long clubId);

    @Transactional
    void reject(Long id, Long userId, Long clubId);
}
